home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Sound Cards
/
Programming Sound Cards.iso
/
sound_60
/
vocplay.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-01
|
730b
|
35 lines
/*
* VOCPLAY.C - Test program using SBLIB.LIB
* Written by Brian Clayton
*
* NOTE: you need to use the Large or Huge memory model
*/
#include <dos.h>
#include <stdio.h>
#include "sblib.h"
void main( void )
{
unsigned err, seg, status;
int handle, x;
err = _dos_allocmem( 8000 >> 4, &seg );
if( err != 0 )
exit(2);
loaddrv( seg, 8000, "CTVDSK.DRV" );
/* These next two lines are optional (see docs) */
setbaseio( 0x220 );
setint( 7 );
err = initdrv( 10, &status );
printf( "Playing TEST.VOC, press any key to quit..." );
_dos_open( "test.voc", 0, &handle );
playvoc( handle );
getch();
stopvoc( );
_dos_close( handle );
unloaddrv();
_dos_freemem( seg );
exit(0);
}